package com.quasar.hpatient.model.litePalmodel;

import com.bigkoo.pickerview.model.IPickerViewData;

import org.litepal.crud.DataSupport;

import java.util.Date;

/**
 * name : lishuai
 * time : 2017/9/26
 * title: 医院信息表
 */

public class HospitalInfodb extends DataSupport implements IPickerViewData {

    public void HospitalInfodb(){}
    private int id;
    private Integer primaryid;//医院ID
    private String Name;//医院名称
    private String Cover;//医院缩略图片
    private Integer provinceID;//所在省
    private Integer cityID;//所在市
    private Integer regionID;//所在区县
    private String Addr;//地址
    private String officePhone;//联系电话
    private String linkman;//联系人
    private Integer status;//状态，-1：删除，0：未激活，1：激活
    private String description;//医院描述信息，可以形成医院页面
    private Date createTime;//创建时间
    private Date lastEditTime;//最后编辑时间
    private int version;//版本信息
    public HospitalInfodb(int id, Integer primaryid, String name, String cover, Integer provinceID, Integer cityID, Integer regionID, String addr,
                          String officePhone, String linkman, Integer status, String description, Date createTime, Date lastEditTime,int version) {
        this.id = id;
        this.primaryid = primaryid;
        Name = name;
        Cover = cover;
        this.provinceID = provinceID;
        this.cityID = cityID;
        this.regionID = regionID;
        Addr = addr;
        this.officePhone = officePhone;
        this.linkman = linkman;
        this.status = status;
        this.description = description;
        this.createTime = createTime;
        this.lastEditTime = lastEditTime;
        this.version=version;
    }

    public int getVersion() {
        return version;
    }
    public void setVersion(int version) {
        this.version = version;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Integer getPrimaryid() {
        return primaryid;
    }

    public void setPrimaryid(Integer primaryid) {
        this.primaryid = primaryid;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getCover() {
        return Cover;
    }

    public void setCover(String cover) {
        Cover = cover;
    }

    public Integer getProvinceID() {
        return provinceID;
    }

    public void setProvinceID(Integer provinceID) {
        this.provinceID = provinceID;
    }

    public Integer getCityID() {
        return cityID;
    }

    public void setCityID(Integer cityID) {
        this.cityID = cityID;
    }

    public Integer getRegionID() {
        return regionID;
    }

    public void setRegionID(Integer regionID) {
        this.regionID = regionID;
    }

    public String getAddr() {
        return Addr;
    }

    public void setAddr(String addr) {
        Addr = addr;
    }

    public String getOfficePhone() {
        return officePhone;
    }

    public void setOfficePhone(String officePhone) {
        this.officePhone = officePhone;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastEditTime() {
        return lastEditTime;
    }

    public void setLastEditTime(Date lastEditTime) {
        this.lastEditTime = lastEditTime;
    }

    @Override
    public String getPickerViewText() {
        return getName();
    }
}
